public class Preclass01 {
    public static int[] isChange(int[] num){
        for (int i = 0; i < num.length ; i++) {
            int crue = i;
            for (int j = i; j < num.length ; j++) {
                if(num[crue] > num[j]){
                    crue = j;
                }
            }
            int temp = num[i];
            num[i] = num[crue];
            num[crue] = temp;
        }
        return num;
    }

    public static void main(String[] args) {
        int[] num ={54,6,4,58,81,8112,19,2,58,86};
        isChange(num);
        for (int a :num
             ) {
            System.out.println(a);
        }
    }
}
